# -*- coding: utf-8 -*-

import logging

class BaseConfig:
    DEBUG = False
    DB_USER = "root"
    DB_PASS = "pw@2014@admin"
    DB_HOST = "localhost"
    DB_PORT = 3306
    DB_NAME = "palm"
    K780KEY = 10419
    K780SIGN = "9494b8fc61ec01487bafbe4ee6ceda1a"


class DevConfig(BaseConfig):
    DEBUG = True
    LVL = logging.NOTSET
    SQLALCHEMY_DATABASE_URI = "sqlite:///test.db"


class Config(BaseConfig):
    DEBUG = False
    SQLALCHEMY_DATABASE_URI = "mysql://%s:%s@%s:%d/%s?charset=utf-8" % (
                                BaseConfig.DB_USER,
                                BaseConfig.DB_PASS,
                                BaseConfig.DB_HOST,
                                BaseConfig.DB_PORT,
                                BaseConfig.DB_NAME
                                )
